﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EmployerList.aspx.cs" Inherits="WorkUA.UserManagment.EmployerList" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <asp:ObjectDataSource ID="dsUsers" DataObjectTypeName="DB_EntityFramework.User" runat="server" TypeName="DAL.Managers.UserManager"
        SelectMethod="GetEmployees" DeleteMethod="Delete"></asp:ObjectDataSource>
    <form id="form1" runat="server">
        <asp:GridView ID="gvUsers" runat="server" DataKeyNames="Id" DataSourceID="dsUsers" AutoGenerateDeleteButton="true">
            <Columns>
                <asp:TemplateField HeaderText="edit">
                    <ItemTemplate>
                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# string.Format("~/EditEmployer.aspx?uid={0}", Eval("Id")) %>' Text="edit" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <asp:LinkButton ID="LinkButton1" runat="server" Text="Add Employee" Font-Underline="false" ForeColor="Gray" PostBackUrl="~/AddEmployer.aspx"></asp:LinkButton>
    </form>
</body>
</html>
